package br.inf.solutions.apresentacoes.ssp.view.composer.basicforms;

import org.springframework.context.annotation.Scope;

import br.com.vexillum.util.ReflectionUtils;
import br.com.vexillum.util.SpringFactory;
import br.inf.solutions.apresentacoes.ssp.control.basics.HairColorController;
import br.inf.solutions.apresentacoes.ssp.model.basics.HairColor;

@SuppressWarnings("serial")
@org.springframework.stereotype.Component
@Scope("prototype")
public class HairColorComposer extends BasicFormsComposer<HairColor, HairColorController> {

	@Override
	protected String getUpdatePage() {
		return "/paginas/corcabelo/modalCadastrar.zul";
	}

	@Override
	public HairColorController getControl() {
		return SpringFactory.getController("hairColorController", HairColorController.class, ReflectionUtils.prepareDataForPersistence(this));
	}

	@Override
	public HairColor getEntityObject() {
		return new HairColor();
	}
	
}
